import request from '@/utils/request'
const url_ax = 'Eqxiu/'

//来源列表查询
export function getPvsResource(data) {
return httpf('getPvsResource','get',data);
}

// 设置注册来源
export function settingPvsResource(data) {
  return httpf('settingPvsResource','post',data);
}


function httpf(url,mh,data) {
  if(mh == 'get'){
    return request({
      url: url_ax+url,
      method: 'post',
      data: data
    })
  }else {
    return request({
      url: url_ax+url,
      method: 'post',
      headers: {
      'Content-Type': 'application/json;charset=UTF-8'
            },
      data: data
      })
  }
}
